package com.woniuxy.table.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.table.infra.model.DinnerTable;
import com.woniuxy.table.service.dto.DinnerTableDto;
import com.woniuxy.table.service.param.ModifyTableServiceParam;
import com.woniuxy.table.service.param.AddTableServiceParam;
import com.woniuxy.table.service.param.LoadAllStoreTableServiceParam;
import common.WoniuPage;

import java.util.List;

/**
 * <p>
 * 餐桌信息表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2023-07-20
 */
public interface DinnerTableService extends IService<DinnerTable> {

    void addTable(AddTableServiceParam addTableServiceParam);

    void modifyTable(ModifyTableServiceParam modifyTableServiceParam) throws Exception;

    void deleteTable(Integer storeId, Integer tableId);

    WoniuPage<DinnerTableDto> loadAllStoreTable(LoadAllStoreTableServiceParam loadAllStoreTableServiceParam);

    List<DinnerTableDto> getStoreTableByStoreId(Integer storeId);
}
